﻿using DemoUser.Application.User.Filter;
using DemoUser.Application.User.Interface;
using DemoUser.Core.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoUser.Application.User
{

    //[TypeFilter(typeof(WangActionFilter))]
    public class TbUserAppService:IDynamicApiController
    {
        private readonly ITbUserService _bUserService;

        public TbUserAppService(ITbUserService bUserService)
        {
            _bUserService = bUserService;
        }

        [HttpGet]
        //[TypeFilter(typeof(MyActionFilter))]
        //[SystemInterceptor]
        public List<TbUser> GetAll(int count) { 
            return _bUserService.SelectAll(count);
        }

        //[TypeFilter(typeof(MyActionFilter))]
        [HttpGet]
        //[SystemInterceptor]
        public int hh()
        {
            return 2;
        }
    }
}
